<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.org/ui">

<h:head></h:head>
<h:body>
            <h:form>
		<table columns="3" role="presentation">
			<tr>
				<td><h:outputLabel for="firstName">Name: </h:outputLabel></td>
				<td><h:inputText id="firstName" value="#{providerbean.current.name}" /></td>
				<td><h:message for="firstName"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="email">Email: </h:outputLabel></td>
				<td><h:inputText id="email" value="#{providerbean.current.email}" /></td>
				<td><h:message for="email"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="phoneNumber">Phone number: </h:outputLabel></td>
				<td><h:inputText id="phoneNumber" value="#{providerbean.current.telephone}"></h:inputText></td>
				<td><h:message for="phoneNumber"></h:message></td>
			</tr>
			<tr>
				<td><h:outputLabel for="address">Address: </h:outputLabel></td>
				<td><h:inputText id="address" value="#{providerbean.current.address}" /></td>
				<td><h:message for="address"></h:message></td>
			</tr>
		</table>

		<h:commandButton value="Create" action="#{providerbean.addProvider()}" />

	</h:form>
</h:body>
</html>